package com.talos.ums.controller.admin.socialuser.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 社交用户表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsSocialUserPageReqVO extends PageParam {

    @Schema(description = "用户编号", example = "2199")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "社交平台的类型", example = "2")
    private Integer type;

    @Schema(description = "社交 openid", example = "13174")
    private String openid;

    @Schema(description = "平台 unionId", example = "1967")
    private String unionId;

    @Schema(description = "社交 token")
    private String token;

    @Schema(description = "原始 Token 数据，一般是 JSON 格式")
    private String rawTokenInfo;

    @Schema(description = "用户昵称", example = "芋艿")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "原始用户数据，一般是 JSON 格式")
    private String rawUserInfo;

    @Schema(description = "最后一次的认证 code")
    private String code;

    @Schema(description = "最后一次的认证 state")
    private String state;

    @Schema(description = "创建者")
    private String creatorCode;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新者")
    private String modifierCode;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "是否删除")
    private Integer deleted;

    @Schema(description = "租户id", example = "10189")
    private Long tenantId;

}
